﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YXShop.IDAL.Accessories
{
    public interface IQuestion
    {   
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Add(YXShop.Model.Accessories.Question model);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        void Update(YXShop.Model.Accessories.Question model);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        void Delete(int id);
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="ids"></param>
        void DeleteAll(string ids);
        /// <summary>
        /// 得到指定条件列表
        /// </summary>
        /// <param name="uid"></param>
        /// <returns></returns>
        List<YXShop.Model.Accessories.Question> GetAll(string strWhere);
        /// <summary>
        /// 根据ID返回对象
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        YXShop.Model.Accessories.Question GetModelById(int id);
        /// <summary>
        /// 分页
        /// </summary>
        /// <returns></returns>
        ChangeHope.DataBase.DataByPage GetList(int questId);
    }
}
